package com.bi.bitest.bao.entity.AlbumPlay;

import com.bi.bitest.bao.entity.Parsable;
import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created
 * Author:bi[FR]
 * Date:15-10-25
 */
public class AlbumPlay implements Parsable{
    private String albumTitle;
    private String title;
    private String coverLarge;
    private String playUrl32;
    private String playUrl64;
    private long duration;

    public AlbumPlay() {
    }

    @Override
    public void parseJSON(JSONObject json) throws JSONException {
        albumTitle=json.getString("albumTitle");
        title=json.getString("title");
        coverLarge=json.getString("coverLarge");
        playUrl32=json.getString("playUrl32");
        playUrl64=json.getString("playUrl64");
        duration=json.getLong("duration");
    }

    @Override
    public String toString() {
        return "AlbumPlay{" +
                "albumTitle='" + albumTitle + '\'' +
                ", title='" + title + '\'' +
                ", coverLarge='" + coverLarge + '\'' +
                ", playUrl32='" + playUrl32 + '\'' +
                ", playUrl64='" + playUrl64 + '\'' +
                ", duration=" + duration +
                '}';
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAlbumTitle() {
        return albumTitle;
    }

    public void setAlbumTitle(String albumTitle) {
        this.albumTitle = albumTitle;
    }

    public String getCoverLarge() {
        return coverLarge;
    }

    public void setCoverLarge(String coverLarge) {
        this.coverLarge = coverLarge;
    }

    public String getPlayUrl32() {
        return playUrl32;
    }

    public void setPlayUrl32(String playUrl32) {
        this.playUrl32 = playUrl32;
    }

    public String getPlayUrl64() {
        return playUrl64;
    }

    public void setPlayUrl64(String playUrl64) {
        this.playUrl64 = playUrl64;
    }


}
